﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodsAdd_CompanySearch_dl.aspx.cs"
    Inherits="Bidder_GoodsAdd_CompanySearch_dl" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择企业</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css" />
    <link href="../styles/global.css" rel="stylesheet" type="text/css" />

    <script language="vbscript" src="../Common/yz.vbs"></script>

</head>
<body>

    <script language="javascript" type="text/javascript">
        function SelelctCompany(CompanyID, CompanyName, flag) {
            var obj = new Object;
            obj.companyid = CompanyID;
            obj.companyName = CompanyName;

            if (flag == 0) {
                self.opener.confirmvalue_dlsc(obj);
            }
            else if (flag == 1) {
                self.opener.confirmvalue_dl(obj);
            }
            window.close();
        }
    </script>

    <form id="form1" runat="server">
    <div>
        <br />
        <br />
        <table width="98%" border="0" cellpadding="2" cellspacing="1" id="tabData">
            <tr id="tr1" runat="server">
                <td class="td_left_20">
                    企业名称：
                </td>
                <td class="td_right_30">
                    <asp:TextBox ID="txtAttorneyName" runat="server" CssClass="txtbox_200" InvertedComma="企业名称"></asp:TextBox>
                </td>
                <td align="center" colspan="2">
                    <%--企业编码：
                </td>
                <td style="height: 26px">
                    <asp:TextBox ID="txtUserCode" runat="server" CssClass="txtbox_200" InvertedComma="企业编码"></asp:TextBox>--%>
                    <asp:Button ID="Button5" runat="server" Text="查询" CssClass="button_80" OnClientClick="javascript:return CheckForm()" />
                    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="添加" CssClass="button_80" />
                </td>
            </tr>
            <tr id="trAdd" runat="server" visible="false">
                <td class="td_center" colspan="4">
                    <table cellpadding="1" cellspacing="1" border="0" class="list" width="50%">
                        <tr>
                            <td class="td_left_40">
                                企业名称：
                            </td>
                            <td class="td_right_60">
                                <asp:TextBox ID="txtName" runat="server" CssClass="txtbox_200" InvertedComma="企业名称"></asp:TextBox>
                                <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="button_80" OnClick="btnSave_Click"
                                    OnClientClick="javascript:return CheckForm()" />
                                <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="button_80" OnClick="btnCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:DataList ID="DlAttorney" runat="server" Width="98%" CssClass='table_table' HeaderStyle-CssClass='table_title'>
            <ItemStyle CssClass="table_td" />
            <AlternatingItemStyle CssClass="table_td2" />
            <HeaderTemplate>
                <table width="98%">
                    <tr>
                        <td class="td_DataListHead" width="68%">
                            企业名称
                        </td>
                        <td class="td_DataListHead" width="32%">
                            选择企业
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="98%">
                    <tr>
                        <td width="68%" class="td_DataListContent_left">
                            <%# DataBinder.Eval(Container.DataItem, "CompanyName")%>
                        </td>
                        <%--<td width="30%" align="center">
                            <%# DataBinder.Eval(Container.DataItem, "UserCode")%>
                        </td>--%>
                        <td width="32%" class="td_DataListContent_center">
                            <a href="javascript:SelelctCompany('<%# DataBinder.Eval(Container.DataItem, "AccountID")%>','<%# DataBinder.Eval(Container.DataItem,"companyName")%> ',<%=flag %>)">
                                选择企业 </a>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
    </div>
    </form>
</body>
</html>
